//URL相关参数

//模型活动管理API
import bizModelActivityAppApi from '@/common/api/bizModelActivityAppApi.js'
Vue.use(bizModelActivityAppApi, app)

import website from '@/config/website';

//模型活动管理单条查询
let v_queryBizModelActivity = '/biz/model/bizModelActivity/queryBizModelActivity';

//模型活动管理多条列表查询，支持条件查询
let v_queryBizModelActivityListPage = '/biz/model/bizModelActivity/queryBizModelActivityListPage';

//模型活动管理新增记录
let v_saveBizModelActivity = '/biz/model/bizModelActivity/saveBizModelActivity';

//模型活动管理新增或修改记录
let v_saveOrUpdateBizModelActivity = '/biz/model/bizModelActivity/saveOrUpdateBizModelActivity';

//模型活动管理新增多条记录
let v_saveBizModelActivityList = '/biz/model/bizModelActivity/saveBizModelActivityList';

//模型活动管理修改记录
let v_updateBizModelActivity = '/biz/model/bizModelActivity/updateBizModelActivity';

//模型活动管理删除记录
let v_deleteBizModelActivity = '/biz/model/bizModelActivity/deleteBizModelActivity';

//模型活动管理删除多条记录
let v_deleteBizModelActivityList = '/biz/model/bizModelActivity/deleteBizModelActivityList';


const install = (Vue, vm) => {
	//模型活动管理单条查询
	let queryBizModelActivity = (params = {}) => vm.$u.post(v_queryBizModelActivity, params);

	//模型活动管理多条列表查询，支持条件查询
	let queryBizModelActivityListPage = (params = {}) => vm.$u.post(v_queryBizModelActivityListPage, params);

	//模型活动管理新增记录
	let saveBizModelActivity = (params = {}) => vm.$u.post(v_saveBizModelActivity, params);

	//模型活动管理新增或修改记录
	let saveOrUpdateBizModelActivity = (params = {}) => vm.$u.post(v_saveOrUpdateBizModelActivity, params);

	//模型活动管理新增多条记录
	let saveBizModelActivityList = (params = {}) => vm.$u.post(v_saveBizModelActivityList, params);

	//模型活动管理修改记录
	let updateBizModelActivity = (params = {}) => vm.$u.post(v_updateBizModelActivity, params);

	//模型活动管理删除记录
	let deleteBizModelActivity = (params = {}) => vm.$u.post(v_deleteBizModelActivity, params);

	//模型活动管理删除多条记录
	let deleteBizModelActivityList = (params = {}) => vm.$u.post(v_deleteBizModelActivityList, params);
	
	// 将各个定义的接口名称，统一放进对象挂载到vm.$u.api(因为vm就是this，也即this.$u.api)下
	vm.$u.bizModelActivityAppApi = {
		//模型活动管理单条查询
		queryBizModelActivity,

		//模型活动管理多条列表查询，支持条件查询
		queryBizModelActivityListPage,

		//模型活动管理新增记录
		saveBizModelActivity,

		//模型活动管理新增或修改记录
		saveOrUpdateBizModelActivity,

		//模型活动管理新增多条记录
		saveBizModelActivityList,

		//模型活动管理修改记录
		updateBizModelActivity,

		//模型活动管理删除记录
		deleteBizModelActivity,

		//模型活动管理删除多条记录
		deleteBizModelActivityList
	};
}

export default {
	install
}
